package com.anywhere.freightman.order.dao;

import com.anywhere.freightman.common.BaseMapper;
import com.anywhere.freightman.order.model.WaybillFileModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface WaybillFileDao extends BaseMapper<WaybillFileModel> {

    List<WaybillFileModel> getFileList(@Param("orderNo") String orderNo);

    List<WaybillFileModel> getFileListByDriverId(@Param("orderNo") String orderNo, @Param("driverId") Long driverId);

    void removeFIleByFileId(@Param("fileId") long fileId);
}
